//
//  LocalNotificationHelp.m
//  MYIOSFP
//
//  Created by 陈 靓 on 13-9-29.
//  Copyright (c) 2013年 陈 靓. All rights reserved.
//

#import "LocalNotificationHelp.h"

@implementation LocalNotificationHelp

#pragma mark - 发送本地通知
+(void)sendLocalNotice:(NSString *)noticebody :(NSInteger)num{
    UILocalNotification * localnotification = [[UILocalNotification alloc]init];
    
    //设置通知消息
    localnotification.alertBody = noticebody;
    
    //设置通知徽章数
    localnotification.applicationIconBadgeNumber = num;
    
    //设置通知出现时的声音
    localnotification.soundName = UILocalNotificationDefaultSoundName;
    
    //设置动作按钮的标题
    localnotification.alertAction = @"view details";
    
    //立刻发通知
    [[UIApplication sharedApplication] presentLocalNotificationNow:localnotification];
    
    
    
}

@end
